<?php
USE_PAGE('index');
class PageMon_compte extends Page
	{
	protected function build()
		{
		$f = $this->add(new Pages_Html('MTM'));
		$f->setFilter('f_status=1 and f_menu_id=1');

		Bills_customers_login::protect('/inscription');
		$d = $this->add(new Bills_customers_public( $name = 'MYINSC' ) );
		$usr = Bills_customers_login::getCurrentUser();
		$d->buildForm('INSC');
		$d->selectCurrentElement('id',$usr['id']);
		}
		
/*
	protected function _process( &$processor = null, $ret = false )
		{
		$ret = parent::process();
		if($ret && (isset($_POST['form_name']) && $_POST['form_name']=='insc'))
			{
			header('Location:/mon-compte');
			die();
			}
		return( $ret );
		}
*/
		
	protected function getPageUrl() { return '/mon-compte'; }
	protected function getBreadcrumbTitle() { return 'Mon compte'; }
	protected function getPageParent() { return 'PageIndex'; }
	}
?>